package com.kk.springboot_001.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kk.springboot_001.pojo.dto.Fruit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FruitMapper extends BaseMapper<Fruit> {
    @Select("select * from tb_fruit where user_id=#{userId}")
    List<Fruit> selectFruitsByUserId(Integer userId);
}
